JBoss Community Archive (Read Only)

RHQ 4.7

Needed - Hide default template for resource-config when creating a child

:add operation in AS7 may take different parameters than what a :read-resource may report.

So to allow creation of children, the parameters for :add need to be encoded in the <resource-config> section like e.g.

            <resource-configuration> <!-- See BZ 705713 TODO -->
                <c:simple-property name="durable" required="false" type="boolean" readOnly="false" default="false"
                                   description="Whether the queue is durable or not."/>
                <c:list-property name="entries" required="false"  readOnly="false"
                                 description="The jndi names the queue will be bound to.">
                    <c:simple-property name="entries" type="string"/>
                </c:list-property>
                <c:simple-property name="selector" required="false" type="string" readOnly="false" description="The queue selector."/>

                <c:template name="add" description="Properties when adding a new queue" >
                    <c:simple-property name="durable" required="false" type="boolean" default="false"
                                       description="Whether the queue is durable or not."/>
                    <c:list-property name="entries" required="false"
                                     description="The jndi names the queue will be bound to.">
                        <c:simple-property name="entries" type="string"/>
                    </c:list-property>
                    <c:simple-property name="selector" required="false" type="string" description="The queue selector."/>
                </c:template>

            </resource-configuration>

Now the create resource dialog allows to select two templates: default and add.

images/author/download/attachments/67240834/Bildschirmfoto 2011-05-18 um 10.29.28.png

It should be able to hide default, to not confuse the user

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-12 13:56:03 UTC, last content change 2011-05-18 09:27:26 UTC.